package com.ad.payload.dto.merchant;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author:dxgong
 * @日期 2021/4/19 17:37
 * @注释
 */
@Data
public class MerchantKeyValueEditDto {


    @NotNull(message="id不能为空")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /**
     * 商家id
     * */
    @NotNull(message="商家id不能为空")
    private Long merchantId;

    /**
     * key键
     * */
    @NotNull(message="标题不能为空")
    private String itemKey;

    /**
     * value值
     * */
    private String itemValue;
}
